@extends('gotop.index')
@section('content')
	<style>
		/*溢出隐藏*/
		overflow: hidden;
        /*显示省略号*/
		text-overflow: ellipsis;
        /*不换行*/
		white-space: nowrap;
	</style>
		<!-- MAIN -->
		<div id="main" role="main" class="cf">
			
			<!-- posts list -->
			<div id="posts-list" class="cf">
				@article(['limit'=>3])
				<article class="cf">
					<div class="feature-image">
						<a href="{{route('single',$a['id'])}}"><img src="{{$a['thumb']}}" alt="Thumbnail" /></a>
					</div>
					<div class="entry-title">
						<a href="{{route('single',$a['id'])}}" class="post-heading" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{$a['title']}}</a>
						<div class="entry-date">{{$a['updated_at']}}</div>
						<a href="{{route('single',$a['id'])}}" class="comments">{{$a['click']}}</a>
					</div>
					<div class="excerpt">{{$a['bewrite']}}</div>
					<a href="{{route('single',$a['id'])}}" class="action-button">阅读</a>
				</article>
				@endarticle
				
				<!-- page-navigation -->
				<div class="page-navigation cf">
					<div class="nav-next"><a href="#">Older</a></div>
					<div class="nav-previous"><a href="#">Newer</a></div>
				</div>
				<!--ENDS page-navigation -->

					
						
		    </div>
			<!-- ENDS posts list -->			
			
			
			<!-- sidebar -->
        	<aside id="sidebar">
        		
        		<ul>
	        		
	        		<li class="block">
		        		<h4 class="heading">精彩早知道</h4>
		        		
						<div class="ads cf">
							@article(['iscommend'=>1,'limit'=>4])
							<a href="{{route('single',$a['id'])}}"><img src="{{$a['thumb']}}" alt="Thumbnail" width="120px" height="120px"/></a>
							@endarticle
						</div>
	        		</li>
	        		
	        		<li class="block">
	        			<h4 class="heading">Text Widget</h4>
						Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. 
	        		</li>
	        		
	        		<li class="block">
		        		<h4 class="heading">推荐文章</h4>
						<ul>
							@article
							<li class="cat-item"><a href="{{route('single',$a['id'])}}" title="title">{{$a['title']}}<span class="post-counter"> ({{$a['author']}})</span></a></li>
							@endarticle
						</ul>
		        	</li>
        		</ul>
        		
        	</aside>
			<!-- ENDS sidebar -->
			
			
		</div>
		<!-- ENDS MAIN -->
@endsection